<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "t_detection_urine".
 *
 * @property string $id
 * @property integer $user_id
 * @property string $category
 * @property string $leu
 * @property string $leuResult
 * @property string $leuStandard
 * @property string $nit
 * @property string $nitResult
 * @property string $nitStandard
 * @property string $ubg
 * @property string $ubgResult
 * @property string $ubgStandard
 * @property string $pro
 * @property string $proResult
 * @property string $proStandard
 * @property string $ph
 * @property string $phResult
 * @property string $phStandard
 * @property string $bld
 * @property string $bldResult
 * @property string $bldStandard
 * @property string $sg
 * @property string $sgResult
 * @property string $sgStandard
 * @property string $ket
 * @property string $ketResult
 * @property string $ketStandard
 * @property string $bil
 * @property string $bilResult
 * @property string $bilStandard
 * @property string $glu
 * @property string $gluResult
 * @property string $gluStandard
 * @property string $vc
 * @property string $vcResult
 * @property string $vcStandard
 * @property string $paper_sn
 * @property string $source_data
 * @property string $group_date
 * @property string $create_time
 * @property integer $status
 */
class TDetectionUrine extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 't_detection_urine';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['user_id', 'leu', 'leuResult', 'nit', 'nitResult', 'ubg', 'ubgResult', 'pro', 'proResult', 'ph', 'phResult', 'bld', 'bldResult', 'sg', 'sgResult', 'ket', 'ketResult', 'bil', 'bilResult', 'glu', 'gluResult', 'vc', 'vcResult', 'source_data', 'group_date', 'create_time', 'status'], 'required'],
            [['user_id', 'status'], 'integer'],
            [['group_date', 'create_time'], 'safe'],
            [['category', 'leu', 'leuResult', 'nit', 'nitResult', 'ubg', 'ubgResult', 'pro', 'proResult', 'ph', 'phResult', 'bld', 'bldResult', 'sg', 'sgResult', 'ket', 'ketResult', 'bil', 'bilResult', 'glu', 'gluResult', 'vc', 'vcResult', 'paper_sn'], 'string', 'max' => 50],
            [['leuStandard', 'nitStandard', 'ubgStandard', 'proStandard', 'phStandard', 'bldStandard', 'sgStandard', 'ketStandard', 'bilStandard', 'gluStandard', 'vcStandard'], 'string', 'max' => 20],
            [['source_data'], 'string', 'max' => 1000],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'user_id' => 'User ID',
            'category' => 'Category',
            'leu' => 'Leu',
            'leuResult' => 'Leu Result',
            'leuStandard' => 'Leu Standard',
            'nit' => 'Nit',
            'nitResult' => 'Nit Result',
            'nitStandard' => 'Nit Standard',
            'ubg' => 'Ubg',
            'ubgResult' => 'Ubg Result',
            'ubgStandard' => 'Ubg Standard',
            'pro' => 'Pro',
            'proResult' => 'Pro Result',
            'proStandard' => 'Pro Standard',
            'ph' => 'Ph',
            'phResult' => 'Ph Result',
            'phStandard' => 'Ph Standard',
            'bld' => 'Bld',
            'bldResult' => 'Bld Result',
            'bldStandard' => 'Bld Standard',
            'sg' => 'Sg',
            'sgResult' => 'Sg Result',
            'sgStandard' => 'Sg Standard',
            'ket' => 'Ket',
            'ketResult' => 'Ket Result',
            'ketStandard' => 'Ket Standard',
            'bil' => 'Bil',
            'bilResult' => 'Bil Result',
            'bilStandard' => 'Bil Standard',
            'glu' => 'Glu',
            'gluResult' => 'Glu Result',
            'gluStandard' => 'Glu Standard',
            'vc' => 'Vc',
            'vcResult' => 'Vc Result',
            'vcStandard' => 'Vc Standard',
            'paper_sn' => 'Paper Sn',
            'source_data' => 'Source Data',
            'group_date' => 'Group Date',
            'create_time' => 'Create Time',
            'status' => 'Status',
        ];
    }

    /**
     * @inheritdoc
     * @return \app\models\query\TDetectionUrineQuery the active query used by this AR class.
     */
    public static function find()
    {
        return new \app\models\query\TDetectionUrineQuery(get_called_class());
    }
}
